<%@ page import="MypageController.MyKategore.MyKategoreBean" %>
<%@ page import="MypageController.MyMain.MyMainBean" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loe.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="FCK" uri="http://java.fckeditor.net" %>
<%  
String id = (String)request.getAttribute("id");
MyKategoreBean kategorilist[] = (MyKategoreBean[])request.getAttribute("kategorilist");
MyMainBean mypagedata = (MyMainBean)request.getAttribute("mypagedata");
int mypageid = (Integer)request.getAttribute("mypageid");
int level = (Integer)request.getAttribute("level");
String color;
if(level == 1){
	color = "#60b615";
}else{
	color = "#0f89d2";
}
%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/KOMORIUTA/Mypage/Css/MpWrite.css"> 

<script src="/KOMORIUTA/Mypage/Mp_Script.js" type="text/JavaScript"></script>
<script src="/KOMORIUTA/Mypage/jquery.js" type="text/JavaScript"></script>
<script src="/KOMORIUTA/Mypage/fckeditor/fckeditor.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form id="write" action="/KOMORIUTA/MyWriteServ.do" method="post" >
<input type="hidden" name="action" value="write">
<input type="hidden" name="id" value="<%=id%>">
<input type="hidden" name="mypageid" value="<%=mypageid%>">
<table align="center" width="696" height="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td align="center" width="100%" height="100" background="<%=request.getContextPath() %>/Mypage/image/topskin.jpg" style="border-right: 2px solid <%=color %>; border-bottom: 2px solid <%=color %>">
			<table width="100%"cellpadding="0" cellspacing="0">
				<tr height="20%"><td>&nbsp;</td></tr>
				
				<tr align="center">
					<td width="80%">
						<h1><%=mypagedata.getBlog_Tilte()%></h1>
					</td>
				</tr>
				
				<tr>
					<td align="right" valign="bottom" >
						<%=mypagedata.getBlog_Intro() %>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	
	<tr>
		<td align="right" valign="middle">
			<a href=javascript:startPage("<%=id%>","<%=0%>")>
				<!-- 
				<% if(level == 1){ %>共有者
				<% }else{ %>製作者<% }%>[<%=id%>]
				 -->
				<img alt="" src="<%=request.getContextPath() %>/Main/image/Blog_My.png">
			</a>　
				<% if(level == 2){ %>
			<a href=javascript:manage('<%=id%>',<%=mypageid%>)>
				<img alt="" src="<%=request.getContextPath() %>/Main/image/Blog_Ad.png">
			</a>
				<% } %>
		</td>
	</tr>
	<tr><td>&nbsp;</td></tr>
	<tr align="center" height="40">
		<td>
			<img src="/KOMORIUTA/Mypage/image/dia.gif" width="12" height="12" /> 
				カテゴリー：<select name="kate">
				<option value="">無し</option>
					<%for(int i = 0; i < kategorilist.length; i++){ %>
				<option><%=kategorilist[i].getKeta_Title()%></option>
					<%}%>
				</select>
			<img src="/KOMORIUTA/Mypage/image/dia.gif" width="12" height="12" /> 
				タイトル：<input id="title" type="text" name="title" size="34"/>
			<img src="/KOMORIUTA/Mypage/image/dia.gif" width="12" height="12" /> 
				ユーザー名 : <%=id%>
		</td>
	</tr>
	
	<tr id="fck">
		<td>
			<FCK:editor instanceName="content" toolbarSet="MyToolbarSet" height="450"></FCK:editor>
		</td>
	</tr>
	<tr><td>&nbsp;</td></tr>
	<tr align="center">
		<td>
			<img style="cursor: pointer;" src="/KOMORIUTA/Mypage/image/Mybold_Bk.png" onClick="MypageCon('<%=id%>')"/>
			<img style="cursor: pointer;" src="/KOMORIUTA/Mypage/image/Mybold_Cf.png" onClick="weitePost()"/>
		</td>
	</tr>
	
	
	
</table>
</form>

<!-- 
<div class="form">
	<div id="toplist">
	<a href=javascript:startPage("<%=id%>","<%=0%>") class="black"><% if(level == 1){ %>共有者<% }else{ %>製作者<% }%>[<%=id%>]様のMyPage</a>　<a href=javascript:entriWrite('<%=id%>',<%=mypageid%>) class="black"> 書き込み </a>　<% if(level == 2){ %><a href=javascript:manage('<%=id%>',<%=mypageid%>) class="black">MyPage管理</a><% } %>
	</div>
	<div id="top">
		<%=mypagedata.getBlog_Tilte()%>
	</div>
	<div id="top_bottom"><%=mypagedata.getBlog_Intro() %></div>
	<form id="write" action="/KOMORIUTA/MyWriteServ.do" method="post" >
	<input type="hidden" name="action" value="write">
	<input type="hidden" name="id" value="<%=id%>">
	<input type="hidden" name="mypageid" value="<%=mypageid%>">
		<fieldset>
			<legend>書き込み</legend>
				<p>
					<img src="/KOMORIUTA/Mypage/image/dia.gif" width="12" height="12" /> 
					カテゴリー：<select name="kate">
						<option value="">無し</option>
						<%for(int i = 0; i < kategorilist.length; i++){ %>
							<option><%=kategorilist[i].getKeta_Title()%></option>
						<%}%>
						</select> | 
					<img src="/KOMORIUTA/Mypage/image/dia.gif" width="12" height="12" /> 
					タイトル：<input id="title" type="text" name="title" /> | 
					<img src="/KOMORIUTA/Mypage/image/dia.gif" width="12" height="12" /> 
					글쓴이 : <%=id%>
				</p>
				<p id="fck">
					<FCK:editor instanceName="content" toolbarSet="MyToolbarSet" height="450"></FCK:editor>
				</p>
				<p>
					<img style="cursor: pointer;" src="/KOMORIUTA/Mypage/image/back.png" width="60" height="30" onClick="MypageCon('<%=id%>');"/>
					<img style="cursor: pointer;" src="/KOMORIUTA/Mypage/image/ok.png" width="60" height="30" onClick="weitePost()"/>
				</p>		
		</fieldset>
	</form>
</div>
 -->

</body>
</html>